package com.zm.tag;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import java.util.Properties;

import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class TimeTag extends SimpleTagSupport{
	
        public void doTag() throws FileNotFoundException, IOException{
        	String page=((PageContext)getJspContext()).getServletContext().getRealPath("/")+"a.properties";
            FileInputStream in=new FileInputStream(page);
            Properties p=new Properties();
    		p.load(in);
    		String a=p.getProperty("account");
    		getJspContext().getOut().println(a);
        	
        }

}
